﻿using css.crypt;

namespace KelonProud.Aes
{
    public class Aes
    {
        public static string Encrypt(string str)
        {
            var encStr = AesCTR.encrypt(str, "utf-8", "1234567890123456", "wisdomdata201806");
            return encStr;
        }
        public static string Decrypt(string str)
        {
            var decStr = AesCTR.decrypt(str, "utf-8", "1234567890123456", "wisdomdata201806");
            return decStr;
        }
        /// <summary>
        /// sha1Hex签名
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static string Sha1(string str)
        {
            return AesCTR.sha1(str);
        }
    }
}
